package com.allyes.flume.source;

public class Pair<L, R> {
  public L left;
  public R right;

  public Pair() {
  }

  public Pair(L l, R r) {
    set(l, r);
  }

  public void set(L l, R r) {
    left = l;
    right = r;
  }

  public void set(Pair<L,R> other) {
    left = other.left;
    right = other.right;
  }

  @Override
  public String toString() {
    return "(" + left.toString() + ", " + right.toString() + ")";
  }
}
